<?php
	class Hello_Controller extends TinyMVC_Controller{
	  	function index(){
		    //$this->view->display('hello_view');
			//$output = $this->view->fetch('hello_view');
			
			//$this->view->assign('title','Hello');
		    //$this->view->assign('body_text','Hello World.');
		    //$this->view->display('hello_view');
			
			//$data['title'] 		= 'Hello';
			//$data['body_text'] 	= 'Hello world.';
			//$this->view->display('hello_view',$data);
			
			//$this->load->model('Hello_Model', 'data');
			//$data['title'] 		= $this->data->get_title();
			//$data['body_text'] 	= $this->data->get_body_text();
			//$this->view->display('hello_view',$data);
			$output = $this->view->fetch('hello_view');
			
			if($output){
				$left_menu = $this->view->fetch('leftmenu_view');
				$this->template->display($output, $left_menu);
			}else{
				print_r($this->template->getErrors());
			}
	  	}
	}
?>